import { v4 as uuid } from 'uuid'

export const getTempUserUuidToken = () => {
  //本地存储一个 游客的唯一id
  let id = localStorage.getItem('TempUserId')
  if (!id) {
    let newId = uuid()
    localStorage.setItem('TempUserId', newId)
    return newId
  } else {
    return id
  }
}
